#include <stdio.h>
#define FILE_NAME "log.txt"

int main() 
{
    FILE* fp = fopen(FILE_NAME, "r");
    if(fp == NULL) 
    {
        perror("fopen");
        return 1;
    }

    char buffer[64];
    while(fgets(buffer, sizeof(buffer) - 1, fp) != NULL) 
    {
        fprintf(stdout, "%s", buffer);
    }

    fclose(fp);
    return 0;
}
